package org.java.assembler;

public class Bits {
    private String essence;
    private byte phenomenon;

    public Bits(String essence, byte phenomenon) {
        this.essence = essence;
        this.phenomenon = phenomenon;
    }

    public Bits append(Bits bits) {
        return new Bits(this.essence + bits.essence, (byte) 0);
    }

    public String getEssence() {
        return essence;
    }

    public byte getPhenomenon() {
        return phenomenon;
    }

    public static Bits defaultCPrefix() {
        return new Bits("1", (byte)1);
    }

    public static Bits defaultCReserved() {
        return new Bits("11", (byte)3);
    }

    public static Bits defaultAPrefix() {
        return new Bits("0", (byte)0);
    }

    public static Bits createBits(String symbol) {
        return new Bits(symbol, (byte) 0);
    }
}
